package com.gistmap.sideline.repository;

import com.gistmap.sideline.entity.Participate;
import com.gistmap.sideline.entity.Task;
import com.gistmap.sideline.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ParticipateRepository extends JpaRepository<Participate, Long> {

    List<Participate> findAllByTask(Task task);

    Participate findByUserAndTask(User user, Task task);
}
